﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Imaginecup.stage;
using imaginecup.objectManager;
using Imaginecup.loop;

namespace Imaginecup.component.scene
{
    public class SceneData
    {
        private ObjectManager m_ObjMan;
        private IDrawAble m_DrawStage;
        private IUpdateAble m_UpdateStage;

        public SceneData(ObjectManager objMan , IDrawAble drawAble , IUpdateAble updateAble)
        {
            m_ObjMan = objMan;
            m_DrawStage = drawAble;
            m_UpdateStage = updateAble;
        }

        public ObjectManager GetObjectMan()
        {
            return m_ObjMan;
        }

        public IDrawAble GetDrawAble()
        {
            return m_DrawStage;
        }
        public IUpdateAble GetUpdateAble()
        {
            return m_UpdateStage;
        }

        public void Release()
        {
            m_ObjMan.Release();
            m_DrawStage.Release();
            m_UpdateStage.Release();
        }
    }
}
